Frames No Frames Cognitoware API v2009512
Cognitoware.Robotics.dll
Cognitoware.Mathematics.Probability.Continuous

Class RangedUniform<T>
T: A Vector type

System.Object


Summary

A uniform distribution over a range.

Constructor Summary

RangedUniform(T, T)
Creates a uniform distribution over the specified range.

Method Summary

AliasAs()
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
Equals(Object)
Inherited from System.Object
Finalize()
Inherited from System.Object
GetEntropy(IEnumerable<T>)
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
GetHashCode()
Inherited from System.Object
GetType()
Inherited from System.Object
MemberwiseClone()
Inherited from System.Object
ProbabilityOf(T)
Gets the probability of a value in T.
Sample(Random)
Samples a value from the distribution using a random number between one and zero.
ToString()
Inherited from System.Object

Details

A uniform distribution over a minimum value and maximum value. All values inside of the range will have probability 1/(max-min). All values outside of the range will have probability 0. T must be a Vector value.

Constructor Details

public RangedUniform(T min, T max)
Creates a uniform distribution over the specified range.

Parameters:

min - The lower bound of the range.
max - The upper bound of the range.

Method Details

public override Double ProbabilityOf(T x)
Gets the probability of a value in T. All values inside of the range will have probability 1/(max-min). All values outside of the range will have probability 0.

Parameters:

x - The value whose probability is return.

Returns:

The probability of result.

public override T Sample(Random select)
Samples a value from the distribution using a random number between one and zero.

Parameters:

select - A generator for random values between zero and one.

Returns:

The value of T that maps to the input argument.


Questions, Comments and Licensing
Copyright 2009 Cognitoware. All rights reserved.